﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace Windvoice.Blog
{
    [ActiveRecord("Link")]
    public partial class Voice : ActiveRecordBase<Voice>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }
        
        [Display(Name = "作者")]
        [Required]
        [Property]
        public string Author
        {
            get;
            set;
        }

        [Display(Name = "内容")]
        [Required]
        [Property]
        public string Content
        {
            get;
            set;
        }

        [Property]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }
}
